package mr.ali.videoapp.portal.service;

import com.github.pagehelper.PageInfo;
import mr.ali.videoapp.portal.model.CollectionWatch;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr-ali
 * @since 2025-06-01
 */
public interface ICollectionWatchService extends IService<CollectionWatch> {


    PageInfo<CollectionWatch> findAll(Integer pageNum , Integer pageSize ,Integer userId);

    PageInfo<CollectionWatch> findAllIndex(Integer pageNum, Integer pageSize, Integer userId);

    Integer delete(Integer userId, Integer videoId);

    //    更新观看记录
    void update(Integer userId, Integer videoId);
}
